#ifndef __APP_MSG_H
#define __APP_MSG_H
#include "app_common.h"

typedef struct
{
    char *connType;
    int motorId;
    char *action;
    char *status;
    int16_t motorSpeed;
} msg_t;

gate_status_t app_msg_json_2_msg(char *json, msg_t *msg);
gate_status_t app_msg_msg_2_json(msg_t *msg, char *json);
#endif
